< Prev(J) / Next(K) > / View :

Filename: /text/shared/01/02100001.xhp

(bookmark: bm_id3146765)
regular expressions; list of
lists;regular expressions
replacing;tab stops (regular expressions)
tab stops;regular expressions
concatenation, see ampersand symbol
ampersand symbol, see also operators

正規表現; リストの
リスト; 正規表現
置換; タブストップ (正規表現)
タブストップ; 正規表現
連結, アンパサンドシンボルを参照
アンパサンドシンボル, 演算子を参照

(variable: 02100001)List of Regular Expressions
(variable: 02100001)正規表現のリスト(hd_id3146765.203)

Character
記号(par_id3149741.17)

Result/Use
作用と用途(par_id3155577.18)

Any character
すべての文字(par_id6600543.)

Represents the given character unless otherwise specified.(par_id9824518.00000001.)

.
.(par_id3152427.19)

Represents any single character except for a line break or paragraph break. For example, the search term "sh.rt" returns both "shirt" and "short".
行ブレークと段落ブレーク以外のすべての単一文字を表します。たとえば、検索語として「sh.rt」を指定すると、「shirt」と「short」の両方が戻されます。(par_id3149031.20)

^
^(par_id3154682.21)

Only finds the search term if the term is at the beginning of a paragraph. Special objects such as empty fields or character-anchored frames, at the beginning of a paragraph are ignored. Example: "^Peter".
検索語句が段落の先頭にある場合にのみ検索されます。段落の先頭にある特殊オブジェクト (空のフィードや文字にアンカーされた枠) は無視されます。たとえば、「^Peter」です。(par_id3155351.22)

$
$(par_id3159194.23)

Only finds the search term if the term appears at the end of a paragraph. Special objects such as empty fields or character-anchored frames at the end of a paragraph are ignored. Example: "Peter$".
検索語句が段落の末尾にある場合にのみ検索されます。段落の末尾にある特殊なオブジェクト (空のフィールドや文字にアンカーされた枠) は無視されます。たとえば、「Peter$」などです。(par_id3152542.24)

*
*(par_id3156414.25)

Finds zero or more of the characters in front of the "*". For example, "Ab*c" finds "Ac", "Abc", "Abbc", "Abbbc", and so on.
「*」の前の文字が 0 個以上の語句が検索されます。例えば「Ab*c」では、「Ac」、「Abc」、「Abbc」、「Abbbc」などが検索されます。(par_id3155555.26)

+
+(par_id3147399.27)

Finds one or more of the characters in front of the "+". For example, "AX.+4" finds "AXx4", but not "AX4".
「+」記号の前の文字が 1 個以上の語句が検索されます。たとえば、「AX.+4」とすると「AX 4」は検索されますが「AX4」は検索されません。(par_id3157958.28)

The longest possible string that matches this search pattern in a paragraph is always found. If the paragraph contains the string "AX 4 AX4", the entire passage is highlighted.
段落内で可能な限り長いテキストが常に検索されます。段落にテキスト「AX 4 AX4」が含まれている場合、先頭の A から末尾の 4 までが検索されます。(par_id3145313.207)

?
?(par_id3143267.199)

Finds zero or one of the characters in front of the "?". For example, "Texts?" finds "Text" and "Texts" and "x(ab|c)?y" finds "xy", "xaby", or "xcy".
「?」 の直前にある文字が0回または1回出現することを示します。たとえば 「テキ?ト」 と指定すると 「テスト」 と 「テキスト」 が検索されます。「x(ab|c)?y」 と指定すると 「xaby」 や 「xcy」 が検索されます。(par_id3153684.200)

\
\(par_id3166410.158)

Search interprets the special character that follows the "\" as a normal character and not as a regular expression (except for the combinations \n, \t, \>, and \<). For example, "tree\." finds "tree.", not "treed" or "trees".
正規表現ではなく、通常の文字として「\」の後ろに続く特殊文字を検索します (\n、 \t、 \>、 \< の組み合わせは除きます)。たとえば「tree\.」は、「tree.」を検索します。「treed」あるいは「trees」などは検索できません。(par_id3147209.159)

\n
\n(par_id3152945.166)

Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Search for and Replace with boxes, and then perform a search and replace.
(Shift) + (Enter) キーで挿入された手動の改行を表します。改行を段落区切りに変更するには、検索する文字列 ボックスと 置換語の文字列 ボックスに \n と入力して、検索と置換を実行します。(par_id3153700.167)

\n in the Search for text box stands for a line break that was inserted with the Shift+Enter key combination.
検索対象 テキストボックスの \n は、(Shift) + (Enter) キーの組み合わせで挿入された改行を表します。(par_id9262672.)

\n in the Replace with text box stands for a paragraph break that can be entered with the Enter or Return key.
置換内容 テキストボックスの \n は、Enter または Return キーで入力できる改段落を表します。(par_id2366100.)

\t
\t(par_id3153258.29)

Represents a tab. You can also use this expression in the Replace with box.
タブ文字を表します。この式は、置換後の文字列 ボックスでも使用できます。(par_id3157809.30)

\>
\>(par_id3146775.33)

Only finds the search term if it appears at the end of a word. For example, "book\>" finds "checkbook", but not "bookmark".
単語の末尾にある対象の語句のみを検索します。たとえば「book\>」を指定すると、「checkbook」は検索されますが、「bookmark」は検索されません。(par_id3148644.34)

\<
\<(par_id3150670.35)

Only finds the search term if it appears at the beginning of a word. For example, "\<book" finds "bookmark", but not "checkbook".
検索語が単語の先頭にある場合にのみ検索します。例えば「\<book」を指定すると、「bookmark」は検索されますが、「checkbook」は検索されません。(par_id3153666.36)

^$
^$(par_id3149576.37)

Finds an empty paragraph.
空の段落が検索されます。(par_id3151245.38)

^.
^.(par_id3148550.41)

Finds the first character of a paragraph.
段落の最初の文字が検索されます。(par_id3159413.42)

& or $0
& または $0(par_id3147282.43)

Adds the string that was found by the search criteria in the Search for box to the term in the Replace with box when you make a replacement.
置換を行う場合には、検索する文字列 ボックスの検索条件で検索された文字列を 置換後の文字列 ボックスの語に追加します。(par_id3153961.44)

For example, if you enter "window" in the Search for box and "&frame" in the Replace with box, the word "window" is replaced with "windowframe".
たとえば 検索する文字列 ボックスに「window」と入力し、置換後の文字列 ボックスに「&frame」と入力した場合、単語「window」が「windowframe」に置き換えられます。(par_id3149650.201)

You can also enter an "&" in the Replace with box to modify the Attributes or the Format of the string found by the search criteria.
また、置換後の文字列 ボックスに「&」を入力すると、検索条件によって検索される文字列の 属性書式 を変更できます。(par_id3150543.206)

[abc123]
[abc123](par_id3145419.172)

Represents one of the characters that are between the brackets.
かっこで囲まれた文字の 1 つを表します。(par_id3154630.173)

[a-e]
[a-e](par_id3156293.174)

Represents any of the characters that are between a and e, including both start and end characters
[PO-fuzzy@shared\01.po] ※※※未訳※※※(par_id3149167.175)

The characters are ordered by their code numbers.
[PO-fuzzy@shared\01.po] ※※※未訳※※※(par_id100520090232005.)

[a-eh-x]
[a-eh-x](par_id3155994.176)

Represents any of the characters that are between a-e and h-x.
a ~ e と h ~ x 間の文字を表します。(par_id3148676.177)

[^a-s]
[^a-s](par_id3145318.178)

Represents everything that is not between a and s.
[PO-fuzzy@shared\01.po] a から s までに含まれないすべての文字を表します。(par_id3153351.179)

\xXXXX
\xXXXX(par_id3156543.180)

Represents a special character based on its four-digit hexadecimal code (XXXX).
4 桁の 16 進数コード (XXXX) で指定する特殊文字を表します。(par_id3153768.181)

The code for the special character depends on the font used. You can view the codes by choosing Insert - Special Character.
この特殊文字のコードは、使用されているフォントに応じて異なります。メニュー 挿入 → 記号と特殊文字 を選択することにより、この文字コードを表示できます。(par_id3159252.208)

|
this|that(par_id3153951.186)

Finds the terms that occur before the "|" and also finds the terms that occur after the "|". For example, "this|that" finds "this" and "that".
[PO-fuzzy@shared\01.po] ※※※未訳※※※(par_id3154985.187)

{2}
{2}(par_id3147376.209)

Defines the number of times that the character in front of the opening bracket occurs. For example, "tre{2}" finds and selects "tree".
[PO-fuzzy@shared\01.po] 開くかっこの左側にある文字の発生回数を指定します。例えば「tre{2}」を指定すると、「tree」が検索されます。(par_id3150103.210)

{1,2}
{1,2}(par_id3151289.211)

Defines the minimum and maximum number of times that the character in front of the opening bracket can occur. For example, "tre{1,2}" finds and selects "tre" and "tree".
[PO-fuzzy@shared\01.po] 左角括弧の前にある文字の繰りかえしの最小回数を指定します。たとえば、「tre{2,}」と指定すると、「tree」、「treee」、および「treeeee」が検索されます。(par_id3147317.212)

{1,}
{1,}(par_id4870754.)

Defines the minimum number of times that the character in front of the opening bracket can occur. For example, "tre{2,}" finds "tree", "treee", and "treeeee".
左角括弧の前にある文字の繰りかえしの最小回数を指定します。たとえば、「tre{2,}」と指定すると、「tree」、「treee」、および「treeeee」が検索されます。(par_id843836.)

( )
( )(par_id3148616.213)

In the Search for box:
検索テキストボックスで:(par_id2701803.)

Defines the characters inside the parentheses as a reference. You can then refer to the first reference in the current expression with "\1", to the second reference with "\2", and so on.
かっこ内の文字を参照対象として定義します。すると、現在の式で最初の参照対象を「\1」、第 2 の参照対象を「\2」、以降同様にして参照することができます。(par_id3153573.214)

For example, if your text contains the number 13487889 and you search using the regular expression (8)7\1\1, "8788" is found.
たとえば、テキストに 13487889 という数字が含まれている場合に、「(8)7\1\1」という正規表現で検索すると、「8788」が検索されます。(par_id3156061.215)

You can also use () to group terms, for example, "a(bc)?d" finds "ad" or "abcd".
() で囲んで語句をグループ化できます。たとえば、「a(bc)?d」では「ad」または「abcd」が検索されます。(par_id2367931.)

In the Replace with box:
「置換後の文字列」 ボックス:(par_id9200109.)

Use $ (dollar) instead of \ (backslash) to replace references. Use $0 to replace the whole found string.
参照を置き換えるには、\ (バックスラッシュ) ではなく $ (ドル記号) を使用します。 見つかった文字列全体を置き換えるには $0 を使用します。(par_id5766472.)

[:alpha:]
[:alpha:](par_id3154790.226)

Represents an alphabetic character. Use [:alpha:]+ to find one of them.
アルファベット文字を表します。[:alpha:]+ を使用して見つけます。(par_id3147397.227)

[:digit:]
[:digit:](par_id3152885.216)

Represents a decimal digit. Use [:digit:]+ to find one of them.
1 桁の数字を表します。[:digit:]+ を使用して見つけます。(par_id3150010.217)

[:alnum:]
[:alnum:](par_id3153743.224)

Represents an alphanumeric character ([:alpha:] and [:digit:]).
英数文字 ([:alpha:] と [:digit:]) を表します。(par_id3153281.225)

[:space:]
[:space:](par_id3153726.218)

Represents a space character (but not other whitespace characters).
空白文字です (その他の空白類文字ではありません)。(par_id3150961.219)

[:print:]
[:print:](par_id3150486.220)

Represents a printable character.
プリント可能文字を表します。(par_id3150872.221)

[:cntrl:]
[:cntrl:](par_id3155854.222)

Represents a nonprinting character.
編集記号を表します。(par_id3152576.223)

[:lower:]
[:lower:](par_id3149958.228)

Represents a lowercase character if Match case is selected in Options.
オプション大文字と小文字を区別する がオンにされていると、小文字を検索します。(par_id3145730.229)

[:upper:]
[:upper:](par_id3148455.230)

Represents an uppercase character if Match case is selected in Options.
[PO-fuzzy@shared\01.po] オプション大小文字を区別する がオンにされている場合には、大文字を表します。(par_id3150092.231)


Examples
(hd_id5311441.)

You can combine the search terms to form complex searches.
検索語を組み合わせて、複雑な検索を作成できます。(par_id9568773.)

To find three-digit numbers alone in a paragraph
段落内の 3 桁の数字だけを検索する(hd_id71413.)

^[:digit:]{3}$
^[:digit:]{3}$(par_id2924283.)

^ means the match has to be at the start of a paragraph,
「^」は、段落の先頭で一致しなければならないことを意味しています。 (par_id5781731.)

[:digit:] matches any decimal digit,
[:digit:]10 進数の数字と一致します。 (par_id6942045.)

{3} means there must be exactly 3 copies of "digit",
{3} は、正確に 3 コピーの「桁」でなければならないことを意味しています。 (par_id4721823.)

$ means the match must end a paragraph.
「$」は段落の最後で一致しなければならないことを意味します。 (par_id5806756.)

(embed text/shared/01/02100000.xhp#02100000 : linkinfo)

Find & Replace
検索と置換(hd_id3154044.1)

(/embed text/shared/01/02100000.xhp#02100000)

(in case of WRITER)

(embed text/swriter/guide/finding.xhp#finding : linkinfo)

Finding and Replacing in Writer
Writer における検索と置換(hd_id8568681.)

(/embed text/swriter/guide/finding.xhp#finding)

(/in case of WRITER)

Wiki page about regular expressions in Writer
Writer の正規表現についての Wiki ページ(par_id1751457.)

Wiki page about regular expressions in Calc
Calc の正規表現についてのWiki ページ(par_id5483870.)


< Prev / Next >